package com.example.demo.service;

import com.example.demo.entify.Order;
import com.example.demo.entify.Record;

import java.util.List;

import org.springframework.stereotype.Service;


public interface OrderService {
    int addOrder(Order order);
    List<Order> Allolders();
    List<Order> WorkerOlders(String username);
    List<Order> WorkerOlders2(String worker);
    int updateState(Order order);  
    int rejectOrder(Order order);
    int Redistribute(Order order);
	Order findOrderByid(Integer orderid);
	int AddRecord(Record record);
	List<Record> list(Integer orderId);

}
